import service from '@/utils/request'

// @Tags MyUserManage
// @Summary 创建MyUserManage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MyUserManage true "创建MyUserManage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /myUser/createMyUserManage [post]
export const createMyUserManage = (data) => {
  return service({
    url: '/myUser/createMyUserManage',
    method: 'post',
    data
  })
}

// @Tags MyUserManage
// @Summary 删除MyUserManage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MyUserManage true "删除MyUserManage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /myUser/deleteMyUserManage [delete]
export const deleteMyUserManage = (data) => {
  return service({
    url: '/myUser/deleteMyUserManage',
    method: 'delete',
    data
  })
}

// @Tags MyUserManage
// @Summary 删除MyUserManage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MyUserManage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /myUser/deleteMyUserManage [delete]
export const deleteMyUserManageByIds = (data) => {
  return service({
    url: '/myUser/deleteMyUserManageByIds',
    method: 'delete',
    data
  })
}

// @Tags MyUserManage
// @Summary 更新MyUserManage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MyUserManage true "更新MyUserManage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /myUser/updateMyUserManage [put]
export const updateMyUserManage = (data) => {
  return service({
    url: '/myUser/updateMyUserManage',
    method: 'put',
    data
  })
}

// @Tags MyUserManage
// @Summary 用id查询MyUserManage
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MyUserManage true "用id查询MyUserManage"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /myUser/findMyUserManage [get]
export const findMyUserManage = (params) => {
  return service({
    url: '/myUser/findMyUserManage',
    method: 'get',
    params
  })
}

// @Tags MyUserManage
// @Summary 分页获取MyUserManage列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取MyUserManage列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /myUser/getMyUserManageList [get]
export const getMyUserManageList = (params) => {
  return service({
    url: '/myUser/getMyUserManageList',
    method: 'get',
    params
  })
}
